Skip to content

Commit 27960a3

Browse files
committed
experiment with a better icon for code blocks in the pdf
1 parent 55edb6b commit 27960a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/rwo_html_code_highlight.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ let () =
3131
Xml_tree.read_document In_channel.stdin
3232
|> fun (dtd, doc) -> Xml_tree.map ~tag:"pre" ~f:subst_with_code_frag doc
3333
|> fun doc -> Xml_tree.write_document Out_channel.stdout dtd doc
34-
with
34+
with
3535
| Xmlm.Error (_p,e) ->
3636
print_endline (Xmlm.error_message e)

lib/code_frag.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ let concat_toplevel_phrases lines =
161161
|> List.filter ~f:(function |"" -> false |_ -> true)
162162

163163
let wrap_in_docbook_box ~part typ file buf =
164-
let part =
164+
let part =
165165
match part with
166166
| 0 -> []
167-
| part -> <:html<, continued (part $int:part$)>>
167+
| part -> <:html< (part $int:part$)>>
168168
in
169-
let icon = <:xml<&#x2318;>> in
169+
let icon = <:xml<&#x270e;>> in
170170
let info = <:xml<<lineannotation>$icon$ $str:typ$: <filename>$str:file$</filename>$part$</lineannotation>
171171
$buf$>> in
172172
Cow.Xml.to_string info

0 commit comments

Comments
 (0)