regardscitoyens / the-law-factory-parser

Data generator for the-law-factory project
https://www.lafabriquedelaloi.fr
GNU General Public License v3.0
45 stars 9 forks source link

[parse_texte] Fix the parsing of articles for PLF2 #123

Closed davidbgk closed 5 years ago

davidbgk commented 5 years ago

See https://github.com/regardscitoyens/anpy/issues/20

This is my attempt to understand the current mechanism of regexps. Feel free to modify/amend with a better solution!

Note that it only fixes the wrong article title, there are still some extra alineas though because of a weird formatting on the AN side (introduced extra new lines).

davidbgk commented 5 years ago

I think Travis requires this commit to turn green: https://github.com/regardscitoyens/anpy/commit/513f7301500039f16dd902c7e629598854d8f1f3

I guess it would require a new release of anpy or is that a cache from the CI? (Anyway, I can feel the pain… https://github.com/betagouv/zam/pull/549 )