refdoc / Module-tools

Scripts and tools for SWORD module conversions
4 stars 3 forks source link

Restrict converting // to not within \rem text #8

Open DavidHaslam opened 7 years ago

DavidHaslam commented 7 years ago

usfm2osis.py quite happily converts a URL within a USFM remark line such that it ends up with the unwanted optional line break!

The conversion of // needs to be restricted to exclude locations within \rem text

Please review and improve this part of the code.

    # //
    osis = osis.replace('//', '\uFDE7<lb type="x-optional"/>')
DavidHaslam commented 7 years ago

Awaiting response since March. @refdoc @JohnAustinDev @HorstSchlemmer1731