blob: 887a395defef752d4f7379fec455cd626e21186f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class PDFConverterChangeBars < (Asciidoctor::Converter.for 'pdf')
register_for 'pdf'
def convert_paragraph node
start_cursor = cursor
super
if node.role? 'changed'
float do
bounding_box [bounds.left - 4, start_cursor], width: 2, height: (start_cursor - cursor) do
fill_bounds 'FF0000'
end
end
end
end
end
|