ronn icon indicating copy to clipboard operation
ronn copied to clipboard

roff: dots are not escaped correctly at beginning of line

Open sometimesfood opened this issue 14 years ago • 4 comments

While dots at the beginning of a line are escaped correctly, the check in the write method does not catch all cases where there are spaces in front of the dot in a NF:

$ man --warnings test/markdown_syntax.roff > /dev/null
<standard input>:1450: warning: macro `dot' not defined
    (possibly missing space after `do')
$ groff -T ascii test/markdown_syntax.roff 2>/dev/null | grep dot
$

sometimesfood avatar Dec 08 '10 00:12 sometimesfood

Here's a testcase:

  • https://github.com/sometimesfood/ronn/tree/issues/46
  • sometimesfood@30c0d64d2ca12992ee3fd3e83aa19146020fe64e

sometimesfood avatar Dec 08 '10 01:12 sometimesfood

Here's a fix: https://github.com/rtomayko/ronn/pull/48

sometimesfood avatar Dec 08 '10 01:12 sometimesfood

See #65. That may also fix this issue.

thinkerbot avatar Sep 01 '12 03:09 thinkerbot

If you're still interested, I've fixed this case in my Ronn-NG fork at https://github.com/apjanke/ronn-ng/issues/17.

apjanke avatar Dec 25 '18 10:12 apjanke