lib/asciidoctor/standoc/cleanup_xref.rb
def extract_localities1(elem, text)
        b = elem.add_child("<localityStack/>").first if LOCALITY_RE.match text
        while (m = LOCALITY_RE.match text)
          ref = m[:ref] ? "<referenceFrom>#{tq m[:ref]}</referenceFrom>" : ""
          refto = m[:to] ? "<referenceTo>#{tq m[:to]}</referenceTo>" : ""
          b.add_child("<locality type='#{locality_label(m)}'>#{ref}#{refto}"\
                      "</locality>")
          text = m[:text]
          b = elem.add_child("<localityStack/>").first if m[:punct] == ";"
        end
        elem.add_child(text) if text
      end
# extending localities to cover ISO referencing
extending localities to cover ISO referencing
extending localities to cover ISO referencing
def extract_localities1(elem, text)
        b = elem.add_child("<localityStack/>").first if LOCALITY_RE.match text
        while (m = LOCALITY_RE.match text)
          ref = m[:ref] ? "<referenceFrom>#{tq m[:ref]}</referenceFrom>" : ""
          refto = m[:to] ? "<referenceTo>#{tq m[:to]}</referenceTo>" : ""
          b.add_child("<locality type='#{locality_label(m)}'>#{ref}#{refto}"\
                      "</locality>")
          text = m[:text]
          b = elem.add_child("<localityStack/>").first if m[:punct] == ";"
        end
        elem.add_child(text) if text
      end
def extract_localities1 ( elem , text ) b = elem . add_child ( "<localityStack/>" ) . first if LOCALITY_RE . match text while ( m = LOCALITY_RE . match text ) ref = m [ :ref ] ? "<referenceFrom>#{tq m[:ref]}</referenceFrom>" : "" refto = m [ :to ] ? "<referenceTo>#{tq m[:to]}</referenceTo>" : "" b . add_child ( "<locality type='#{locality_label(m)}'>#{ref}#{refto}" "</locality>" ) text = m [ :text ] b = elem . add_child ( "<localityStack/>" ) . first if m [ :punct ] == ";" end elem . add_child ( text ) if text end
extending localities to cover ISO referencing
extending localities to cover ISO referencing
elem
text