Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roffit: fix special characters and broken links (#7)
* roffit: roffit Additional edits to regular expression for special character options. Removed condition in field_anchor subroutine, including the one line needed in "linkfile" subroutine; to reduce line numbers. Regarding suggested edits: Unable to achieve fix with text2name and do_encode. In short - new things break. Quick takeaway (should be => becomes): name="--any-option" => name=""--any-option" ("" at start) name="ANY_NAME" => name="ANYNAME" (_ removed) Detailed report (explains above): Since curl.1 is a good use case doing a local test with roffit I made two files: 1. with current badger roffit 2. with (multiple) edited roffit and ran "diff" command on them: ___ One example case remove " in do_encode where: sub do_encode($) { return encode_entities(shift, q{<>&'#}); } results in: name=""--any-option" (2 "" at start) ___ ___ One example case add special characters in text2name: sub text2name { ..... $text =~ s/[^a-zA-Z0-9-`~!@\$%^*()-_=+{};:\'\\|,.?]//g; ...} results in: name="socks5h://" (should be socks5h). or name="AUNDERSCORE" (shoud be A_UNDERSCORE). ___ When 2. with current pull roffit; no new things were broken. * roffit: testpage.output Generated testpage with bug fix from roffit. * roffit: testpage.1 Double checked. Removed space character at end of file.
- Loading branch information