Open ediw8311xht opened 1 year ago
SYNOPSIS Lorem ipsum (BYE GUYS) Lorem ipsum
gawk: cmd. line:145: (FILENAME=- FNR=4) fatal: invalid regexp: Unmatched ( or \(: /\<(BYE\>/
SYNOPSIS
()
SYNOPSIS Lorem ipsum (HELLOGUYS) (BYE GUYS) Lorem ipsum
SYNOPSIS Lorem ipsum (BYE_GUYS) Lorem ipsum
SYNOPSIS Lorem ipsum ffff (hello) Lorem ipsum fasdfasf ( fasdfadsf)
SYNOPSIS Lorem ipsum ffff Lorem ipsum fasdfasf ( fasdfadsf) lorem (hello yo)
Example of real world man page that throws error:
https://www.gsp.com/cgi-bin/man.cgi?section=1&topic=man
https://github.com/mvertes/txt2man/blob/be89fb412fd443813db6b4d2fcd4223546138757/txt2man#L289-L301
Error goes away when removing this section, so its something in this section causing the issue.
Example of text causing error:
The error returned is:
Conditions
SYNOPSIS
section.()
.()
within the first line ofSYNOPSIS
with a space or not with a space.Examples:
1. (SUCCESS)
2. (SUCCESS)
3. (ERROR)
4. (ERROR)
5. (ERROR)
Example of real world man page that throws error:
https://www.gsp.com/cgi-bin/man.cgi?section=1&topic=man
System