all repos — htmlformat @ e7cb9493bc36c7ab5ef2782139174b631b749bec

Go package and CLI tool used to format HTML

fix: don't add spacing after text ending with punctuation

Alan Pearce
commit

e7cb9493bc36c7ab5ef2782139174b631b749bec

parent

314e0256b2b643fbd8acbea6c722fceecc102050

1 file changed, 8 insertions(+), 0 deletions(-)

changed files
M format_test.goformat_test.go
@@ -85,6 +85,14 @@ }
</style> `, }, + { + name: "spaces are not added around elements ending with punctuation", + input: "<div><time>19:00</time>–<time>20:00</time></div>", + expected: `<div> + <time>19:00</time>–<time>20:00</time> +</div> +`, + }, } for _, test := range tests {