3 # Farcical script to remove newlines after
4 # \begin{sidebar} in dblatex' .tex output;
6 # farcical because I'm sure this can be done
7 # in 1 line of sed, and also because I'm sure
8 # the whole need for this script could be fixed
9 # in the ardour.sty (but I don't know how).
17 t = tempfile.NamedTemporaryFile(delete = False)
29 if l.strip() == '\\begin{sidebar}':
34 shutil.move(t.name, sys.argv[1])