X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=asciidoc-pve.in;fp=asciidoc-pve.in;h=b8a9fb2e073d03198a63d0a0c6e6568f14bf6cda;hp=e298abfed0551e1e447754ddd7816dbdef00635d;hb=7d48940bf00be72473ffe9dfc4b5a03e3d948445;hpb=fd02ab9033cacd7a6f0e2e2c5a5db0638564069b diff --git a/asciidoc-pve.in b/asciidoc-pve.in index e298abf..b8a9fb2 100644 --- a/asciidoc-pve.in +++ b/asciidoc-pve.in @@ -234,6 +234,12 @@ sub prepare_adoc_file { next; } + if ($line =~ m/xref:\S+?\[[^\]]*$/) { + die "possible xref spanning multiple lines in '$filename':\n(line $.): $line\n"; + } + if ($line =~ m/<<((?!\>\>).)*$/) { + die "possible xref spanning multiple lines in '$filename':\n(line $.): $line\n"; + } # fix xrefs $line =~ s/xref:([^\s\[\]]+)\[([^\]]*)\]/replace_xref(${target_env},$1,$2)/ge;