mquinson / po4a

Maintain the translations of your documentation with ease (PO for anything)
http://po4a.org/
GNU General Public License v2.0
121 stars 58 forks source link

TeX.pm: allow verbatim environment declaration without trailing space #407

Closed MayeulC closed 1 year ago

MayeulC commented 1 year ago

Previously, a trailing space was matched by \s+, but this is counter-intuitive, and couldn't make it work before digging in the code.

Match the behavior of non-verbatim environment by making it \s* (allowing, but not requiring trailing spaces).

mquinson commented 1 year ago

Thanks a lot, I'll merge this one as soon as the tests are done.