You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that there is a bug in txt2tag on windows. Newlines are written as
the ascii sequence 10 10 13 rather than 10 13. This makes all new lines become
double new lines.
It seems to be rooted in python 3 and its handling of newlines. The solution is
simple but took me forever to figure out.
change the Savefile() to
def Savefile(file_path, contents):
try:
f = open(file_path, 'w', newline="\n")
Essentially adding the newline="\n" argument
Original issue reported on code.google.com by spammer....@googlemail.com on 13 Jan 2012 at 10:05
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
spammer....@googlemail.com
on 13 Jan 2012 at 10:05The text was updated successfully, but these errors were encountered: