On 6/7/21 8:14 AM, Richard Biener wrote:
Hmm, what's the problem with parsing the strings?  The newlines are
only because of our line length limits and hard-coding them looks both
error-prone and ugly.

For the future Sphinx conversion, I need to replace content of the hook 
definitions
in .def files with RST format (as opposed to the current TEXI format). I did so
by putting a placeholders in genhooks.c and then parsing of the created .rst 
file.

When there are no newlines, then I can't split the generated .rst content to 
multiple lines
as defined in .def files.

So my patch makes it only consistent as most of the hooks use '\n\' line 
endings.

Does it make sense?
Martin

Reply via email to