mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v1.8.4.1
This commit is contained in:
@@ -212,7 +212,7 @@ public class Xop_xnde_tag_ {
|
||||
, Tag_references = new_(Tid_references, "references").Xtn_().Nest_()
|
||||
, Tag_source = new_(Tid_source, "source").Xtn_().Block_open_bgn_().Block_close_end_() // deactivate pre; pre; PAGE:en.w:Comment_(computer_programming); DATE:2014-06-23
|
||||
, Tag_syntaxHighlight = new_(Tid_syntaxHighlight, "syntaxHighlight").Xtn_().Block_open_bgn_().Block_close_end_() // deactivate pre; pre; PAGE:en.w:Comment_(computer_programming); DATE:2014-06-23
|
||||
, Tag_gallery = new_(Tid_gallery, "gallery").Xtn_().Block_open_bgn_().Block_close_end_()
|
||||
, Tag_gallery = new_(Tid_gallery, "gallery").Xtn_().Block_open_bgn_().Block_close_end_().Xtn_auto_close_()
|
||||
, Tag_imageMap = new_(Tid_imageMap, "imageMap").Xtn_()
|
||||
, Tag_timeline = new_(Tid_timeline, "timeline").Xtn_()
|
||||
, Tag_hiero = new_(Tid_hiero, "hiero").Xtn_()
|
||||
|
||||
@@ -590,12 +590,7 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
close_bry[i] = src[src_offset + i];
|
||||
boolean auto_close = false;
|
||||
int close_bgn = Find_xtn_end_lhs(ctx, tag, src, src_len, open_bgn, open_end, close_bry);
|
||||
if (close_bgn == Bry_.NotFound) {
|
||||
if (tag.Xtn_auto_close())
|
||||
auto_close = true;
|
||||
else
|
||||
return ctx.Lxr_make_log_(Xop_xnde_log.Xtn_end_not_found, src, open_bgn, open_end);
|
||||
}
|
||||
if (close_bgn == Bry_.NotFound) auto_close = true; // auto-close if end not found; verified with <poem>, <gallery>, <imagemap>, <hiero>, <references> DATE:2014-08-23
|
||||
int close_end = -1;
|
||||
if (auto_close) {
|
||||
xnde_end = close_bgn = close_end = src_len;
|
||||
|
||||
Reference in New Issue
Block a user