mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-03-03 02:58:13 +01:00
Preserve nested stags
This commit is contained in:
parent
1390f28061
commit
54127004d8
@ -655,7 +655,7 @@ let rec find_tree_contents a level = function
|
||||
| StDataBeginTree _ as h::t ->
|
||||
find_tree_contents (h::a) (level + 1) t
|
||||
| StDataEndTree::t ->
|
||||
if level = 1 then (rev a, t) else find_tree_contents a (level - 1) t
|
||||
if level = 1 then (rev a, t) else find_tree_contents (StDataEndTree::a) (level - 1) t
|
||||
| h::t -> find_tree_contents (h::a) level t
|
||||
|
||||
let mstdebug = ref false
|
||||
|
Loading…
x
Reference in New Issue
Block a user