Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit f2dbd8d80ecd9940027d3db0e5befd10e456cb20 1 parent 3bf72aa
Rebecca Turner authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  .cron_fetch.sh
2  .cron_fetch.sh
@@ -4,7 +4,7 @@ source ~/.profile
4 4 fetch_story --toc http://www.fanfiction.net/s/5782108/1/Harry_Potter_and_the_Methods_of_Rationality
5 5 perl -pi -e's{<br/>P:.*? U:.*?</p>$}{}g' *
6 6 perl -pi -e's{(</p>)(<p>)}{$1\n$2}g' *
7   -perl -pi -e's{(<br/>)}{$1\n}g' *
  7 +perl -pi -e's{(<br/>\s*[^\n])}{$1\n}g' *
8 8 git add -A
9 9 git commit -m "$(date)"
10 10 git push origin master

0 comments on commit f2dbd8d

Please sign in to comment.
Something went wrong with that request. Please try again.