aboutsummaryrefslogtreecommitdiffstats
path: root/src/epub.rs
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2020-06-17 14:45:46 -0700
committerJames Campos <james.r.campos@gmail.com>2020-06-17 14:45:46 -0700
commit07aff0373a25ee7ad7b4da10b30207dde3fb29ec (patch)
treee6c9ace47f4b2029bcd8f51cc7e74c6104f6e3b0 /src/epub.rs
parent82b332a546b0946cde8975b4ed5b5c3b702316c1 (diff)
downloadbk-07aff0373a25ee7ad7b4da10b30207dde3fb29ec.tar.gz
0.2
Diffstat (limited to 'src/epub.rs')
-rw-r--r--src/epub.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/epub.rs b/src/epub.rs
index f850add..d74bd2a 100644
--- a/src/epub.rs
+++ b/src/epub.rs
@@ -47,11 +47,11 @@ impl Epub {
match n.tag_name().name() {
"h1" | "h2" | "h3" | "h4" | "h5" | "h6" => {
- buf.push_str("\n\x1b\x5b1m");
+ buf.push_str("\n\x1b[1m");
for c in n.children() {
Self::render(buf, c);
}
- buf.push_str("\x1b\x5b0m\n");
+ buf.push_str("\x1b[0m\n");
}
"blockquote" | "p" | "tr" => {
buf.push('\n');