diff options
-rwxr-xr-x | localworddiff | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/localworddiff b/localworddiff index 0ff2f7a..4ee12d6 100755 --- a/localworddiff +++ b/localworddiff @@ -40,10 +40,6 @@ cat > "$3" <<EOF float: left; width: 49%; } -.file .hunk { - float: right; - width: 90%; -} .file .hunk del, .file .hunk ins { font-weight: bold; @@ -60,7 +56,7 @@ cat > "$3" <<EOF </head> <body> EOF -perl -MText::WordDiff -E 'say word_diff "'"$1"'", "'"$2"'", { STYLE => "HTMLTwoLines" }' >> "$3" +perl -MText::WordDiff -MText::Markdown=markdown -E '$d="<div class=\"file\">";$d_="<\/div>";foreach(split /(?:$d_\n)?$d/, word_diff "'"$1"'", "'"$2"'", { STYLE => "HTMLTwoLines" }){say $d.markdown($_).$d_ if ($_)}'>> "$3" cat >> "$3" <<EOF </body> </html> |