[Ocaml-pxp-users] Setting line number
Dario Teixeira
darioteixeira at yahoo.com
Tue Dec 16 06:03:19 PST 2014
Hi,
When using Pxp_tree_parser.parse_content_entity to parse from a string,
is there a way to set the first line number to a value other than the
default (probably 1)?
Yes, I realise I can just add the line number offset to the value given
by node#position, but for this particular application [1] it would much
easier if I could just tell PXP that line numbering starts at N.
Thanks in advance for any help!
Best regards,
Dario Teixeira
[1] https://github.com/darioteixeira/lambdoc/blob/master/src/lib/lambdoc_read_lambxml_impl/parser.ml
More information about the Ocaml-pxp-users
mailing list