From c1f15729f4502e5f6179266b508f02ac3e3b301e Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Thu, 23 Dec 2021 21:18:27 -0500 Subject: [PATCH] Remove escaping of single/double quotes I don't think this is really ever necessary. It would be _in_ the HTML tags, but we don't support that except for in link href's, and there shouldn't be quotes in the URL's anyways :) This just makes the resulting HTML a bit cleaner. --- blag.c | 2 -- test/big.html | 2 +- test/big.txt | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/blag.c b/blag.c index 3e22779..4784a5b 100644 --- a/blag.c +++ b/blag.c @@ -55,8 +55,6 @@ void putesc(int c) { case '<': printf("<"); break; case '>': printf(">"); break; case '&': printf("&"); break; - case '"': printf("""); break; - case '\'': printf("'"); break; default: putchar(c); } } diff --git a/test/big.html b/test/big.html index c5ac377..fb172a8 100644 --- a/test/big.html +++ b/test/big.html @@ -6,7 +6,7 @@ This is an example blag file! This should be emphasized within a paragraph

-As should this bold +As "should" this bold

and code! diff --git a/test/big.txt b/test/big.txt index c0f1820..41b8591 100644 --- a/test/big.txt +++ b/test/big.txt @@ -4,7 +4,7 @@ This is an example blag file! _This should be emphasized within a paragraph_ -*As should this bold* +*As "should" this bold* `and code!` -- libgit2 1.1.1