\setupbackend[ export=yes, xhtml=yes ] \setupexport[ title={linenumber placement missmatch example in export}, subtitle={}, author={Xristoph} ] \definetyping[mine][numbering=line,tab=4,location=left] \starttext This is a small example trying to use verbatim linenumbering in xml export \startmine #!python a=12 def hellow_world(hello): print("simon says: {}".format(hello)) hallo_welt("how do youdo") \stopmine The spaces are kept but the linenumbers are placed on intermediate lines as they are not included inside \type{} tags but lateron added outside infront oft the tags. \stoptext