CVS log for docbook2mdoc/macro.h

[BACK] Up to [cvsweb.bsd.lv] / docbook2mdoc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Mon May 20 20:08:26 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +6 -5 lines
Diff to previous 1.7 (colored) to selected 1.5 (colored)

When rendering XML entities, skip escaping in macro_addarg().
Fixing a bug which bentley@ found in fonts(7).

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 1 17:20:47 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_1_0
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.5 (colored)

More whitespace improvements:
* Skip XML line breaks right after opening tags.
* When processing a text node, check whether a paragraph break is needed
before starting more detailed checks regarding macro arguments.
* Break the mdoc line at the beginning of a new XML line
unless a macro line is open and wants more arguments.
* Do not print "\c" escapes on macro lines.

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 1 15:05:39 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

In no-fill context, do not break the output line when a text node
on a text line is followed by a macro node.

Revision 1.5 / (download) - annotate - [selected], Tue Apr 16 14:26:27 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_0_2, VERSION_1_0_1, VERSION_1_0_0
Changes since 1.4: +8 -1 lines
Diff to previous 1.4 (colored)

Reorganize printing of .Pp macro lines, much improved formatting:
Refrain from manual tree inspection.
Instead, let <para> and other nodes keep paragraph state
and automatically emit .Pp when needed before printing text or macros.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 11 04:23:22 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +6 -3 lines
Diff to previous 1.3 (colored) to selected 1.5 (colored)

Introduce FMT_* formatter flags to control what can be added to the
current macro line.  Move trailing punctuation handling to the text
formatter, allowing elimination of the function macro_closepunct()
and of the "real" and "bsz" members from struct node.
Substantial functional improvements, yet minus 25 lines of code.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 6 22:37:57 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored) to selected 1.5 (colored)

Store the information whether a node is preceded by whitespace
into the node tree.  Use that information in the formatter
to suppress the insertion of whitespace
in text-text, macro-text, and macro-macro node sequences.

Text-macro sequences are not yet handled.  They are more complicated
because they require emitting a .Pf macro as part of a text node
depending on the spacing properties of the *following* macro node.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 28 20:41:33 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) to selected 1.5 (colored)

Implement a formatter for <author> elements,
handling <contrib>, <personname>, <firstname>, <othername>, <surname>,
as well as arbitrary children properly.

This required minor work on the formatting infrastructure:
Improve macro_addnode() such that it also handles text nodes.
Add a companion function print_textnode().
Let print_text() optionally work without ARG_SPACE.

Triggered by a report from Stephen Gregoratto <dev at sgregoratto
dot me> that and how GTK documentation uses <contrib>.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Mar 26 19:17:29 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Diff to selected 1.5 (colored)

The file docbook2mdoc.c is still large,
so split out the macro line formatter,
which is quite self-contained.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb