Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #44, #46: roff: Clean up unnecessary dot escaping, fix dot escaping in NF environments #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sometimesfood
Copy link
Contributor

This moves dot escaping at the beginning of a line from line to node level.

Fixes #44 and #46.

There's probably a better way to do this, but I figured it was at least cleaner than depending on implementation details in the write method which would have been another naïve solution.

 - Move the escaping for dots at the beginning of a line from the line
   level (write) to the node level (escape). (That's why some
   unnecessary escapes remain unchanged.)

 - This also fixes rtomayko#46 ("roff: dots are not escaped correctly at
   beginning of line").
@sometimesfood
Copy link
Contributor Author

@rtomayko: Any news on this? Just rebased my feature branch to the current master.

@thinkerbot provided a different fix for issue #46 in pull request #65, you might want to check that out, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary dot escaping in roff?
1 participant