[gtk-doc] mkdb: don't hardcode https?, but handle all schemas according to rfc2396



commit e115d6065180871b20eec971f5934f67b8323c3b
Author: Stefan Sauer <ensonic users sf net>
Date:   Sun Feb 9 10:50:58 2014 +0100

    mkdb: don't hardcode https?, but handle all schemas according to rfc2396

 gtkdoc-mkdb.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 03bbfe4..413cfcf 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4848,7 +4848,8 @@ sub MarkDownParseBlocks {
       # markup, including <?xml version="1.0"?>
       my $tag = $1;
       my $is_self_closing = defined($2);
-      if (! $MD_TEXT_LEVEL_ELEMENTS{$tag} && $tag !~ /^https?/) {
+      # skip uri (we're matching the schema part according to RFC 2396 only)
+      if (! $MD_TEXT_LEVEL_ELEMENTS{$tag} && $tag !~ /^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//) {
         push @md_blocks, $md_block;
 
         if ($is_self_closing) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]