fchauvel / flap

Flattening LaTeX projects
https://fchauvel.github.io/flap
GNU General Public License v3.0
17 stars 2 forks source link

Escaped % signs are eliminated #10

Closed noah80 closed 8 years ago

noah80 commented 8 years ago

Hi,

I like the script, but it messes up if there is an \% in the file. It will then drop everything beyond the \%, although it is part of the document, which is kind of bad. Any way to fix that?

Example from a table: Original: 1 & 20 \degree C & nno & 0 & 0 \% & 0 kWh \ After flattening: 1 & 20 \degree C & nein & 0 & 0 \

Best

fchauvel commented 8 years ago

Hello,

Yes, it is due to the use of regular expression. I'll look at it this week and let you know as soon as I got a fix.

Regards,

Franck

fchauvel commented 8 years ago

Hello,

Sorry for the delay, I just pushed an improvement that fixes the problem in the tests I wrote. If you try the latest version directly from the sources, let me know if it does not fix the problem on your side. (See commit 6793c3b)

noah80 commented 8 years ago

It works for me. Thank you!

fchauvel commented 8 years ago

Thanks a lot for the feedback.