md2html: skip indent before </pre>
This commit is contained in:
parent
5196199acb
commit
733ce1b119
4
md2html
4
md2html
@ -32,9 +32,13 @@ function level(new) {
|
|||||||
if (b[i]) {
|
if (b[i]) {
|
||||||
if (b[i] == "head") headers()
|
if (b[i] == "head") headers()
|
||||||
indent = indent - 2
|
indent = indent - 2
|
||||||
|
if (b[i]=="pre") {
|
||||||
|
printf("</%s>\n", b[i])
|
||||||
|
} else {
|
||||||
printf("%0" indent "s</%s>\n", "", b[i])
|
printf("%0" indent "s</%s>\n", "", b[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (i = common; i < length(a); i++) {
|
for (i = common; i < length(a); i++) {
|
||||||
if (a[i]) {
|
if (a[i]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user