all repos — htmlformat @ 1244374b2562d411222e82377bf11c1b84ea532d

Go package and CLI tool used to format HTML

indent content of script and style tags

Alan Pearce
commit

1244374b2562d411222e82377bf11c1b84ea532d

parent

db3ccbe063c5534525722ec8cc07c0ba7adb0601

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

changed files
M format_test.goformat_test.go
@@ -62,6 +62,20 @@ </li>
</ul> `, }, + { + name: "style content is indented consistently", + input: `<style> +body { + text-color: red; +} +</style>`, + expected: `<style> + body { + text-color: red; + } +</style> +`, + }, } for _, test := range tests {