Permalink
Browse files

Only add newlines to BRs that are not at the ends of lines already

  • Loading branch information...
1 parent 3bf72aa commit f2dbd8d80ecd9940027d3db0e5befd10e456cb20 @iarna committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .cron_fetch.sh
View
@@ -4,7 +4,7 @@ source ~/.profile
fetch_story --toc http://www.fanfiction.net/s/5782108/1/Harry_Potter_and_the_Methods_of_Rationality
perl -pi -e's{<br/>P:.*? U:.*?</p>$}{}g' *
perl -pi -e's{(</p>)(<p>)}{$1\n$2}g' *
-perl -pi -e's{(<br/>)}{$1\n}g' *
+perl -pi -e's{(<br/>\s*[^\n])}{$1\n}g' *
git add -A
git commit -m "$(date)"
git push origin master

0 comments on commit f2dbd8d

Please sign in to comment.