mosaic-headless 1.34.1 → 1.34.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -302,6 +302,8 @@ and heading level — and it earned its place at once: it caught the converter l
302
302
  | `verify_intro.py` / `verify_loop.py` | a page-load sequence that ENDS; a perpetual one that loops, hides nothing, and opens |
303
303
  | `theme_export.php` / `theme_import.php` | a whole theme as JSON rows over WP-CLI, ids intact |
304
304
  | `prune_unbound.php` | clears the templates and masters that page rebuilds leave bound to nothing, with their nodes; dry run unless `--apply` |
305
+ | `fix_text_runs.py` | makes buttons built before v1.34.1 editable in the Mosaic editor by wrapping their text the way the editor does; dry run unless `--apply` |
306
+ | `scan_inline_tags.py` | read only: finds text that holds HTML tags, which Mosaic 1.0.11+ prints as visible `<p>` / `<br>` on the page |
305
307
  | `theme_zip.py` / `theme_zip_compare.php` / `theme_delete.php` | Mosaic's own ZIP export/import from outside the editor, the copy held against the source, and a clean delete that refuses the live theme |
306
308
  | `list_fields.php` | every `@VAR` / `@LOOP` name a post's custom fields register, with values |
307
309
  | `verify_dialog.py` | the 1.0.9 modal, triggers, run rules and memory, driven in a browser |
package/SKILL.md CHANGED
@@ -5,7 +5,7 @@ description: |
5
5
  license: "MIT"
6
6
  metadata:
7
7
  author: "moksa (https://moksaweb.com)"
8
- version: "1.34.1"
8
+ version: "1.34.3"
9
9
  homepage: "https://github.com/Moksa1123/mosaic-headless"
10
10
  ---
11
11
 
@@ -857,8 +857,13 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
857
857
  Only `text`, `label`, `choice-label`, `choice-legend`, `fieldset-legend` and the
858
858
  inline `wysiwyg-span` / `wysiwyg-link` hold runs directly. `build_page.py` wraps
859
859
  runs under any other type itself (`wrap_text_runs`), so the `"text"` shorthand is
860
- safe on a button. Output: `<a class="m-button"><div class="m-inherited-text
860
+ safe on a button, and a component's `text` override on a button follows the run
861
+ down into that wrapper (`build_site.py`). Output: `<a class="m-button"><div class="m-inherited-text
861
862
  m-wysiwyg">…</div></a>` - the editor's own button carries the same `<div>`.
863
+ A site built before v1.34.1 is fixed in place by `tools/fix_text_runs.py`
864
+ (dry run, then `--apply`): measured on the test theme, 428 runs wrapped
865
+ across its masters and templates, every page unchanged in text, a component instance's
866
+ override still shown, and a second run finding nothing.
862
867
  - **`text` renders as `<div>` by default** — set `tagName` for `<h1>`, `<p>` and so on.
863
868
  - **A `wysiwyg-text` run prints no markup since 1.0.11.** Its `<` and `>` are escaped
864
869
  on output, so `A<strong>B</strong>C<br>D` reaches the page as those literal
@@ -874,6 +879,13 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
874
879
  `inline_html.py` maps `<strong>`/`<em>` to styled `wysiwyg-span`s instead.
875
880
  Through 1.0.10 the run was raw HTML instead, where a tag name in prose swallowed
876
881
  the rest of the paragraph; `build_page.py` refuses any tag in a run either way.
882
+ **So a site built on 1.0.10 or earlier can start showing tags overnight**: the
883
+ plugin updates itself, the data does not change, and every `<p>`, `<br>` or
884
+ `<span>` written into a run now prints. Run `tools/scan_inline_tags.py` (read only)
885
+ before or after the update, on any site not built by `build_page.py` (another
886
+ converter, hand edits, an older helper). On the test theme it listed 179 runs on
887
+ the Elementor-converted `el-*` pages, and each listed page printed `&lt;p&gt;` while
888
+ the rest printed none.
877
889
  - **`menu-link` is `width: fit-content` by default** (`.m-menu-link{display:flex;gap:4px;
878
890
  padding:4px 8px;width:fit-content;…}`). Used as a cell of a button row or a grid -
879
891
  a phone contact bar on `2fr 1fr 1fr` - its background hugs the text and the cell
@@ -944,6 +956,8 @@ with `tools/prune_unbound.php` (dry run by default) after a batch of rebuilds.
944
956
  | `theme_zip_compare.php` | hold an imported copy against its source, tree for tree - every scoped table, the (parentType, type) shape, which ids survive, and orphans named rather than counted |
945
957
  | `prune_unbound.php` | delete the templates no post is bound to, the masters no kept template uses, their nodes, then orphan nodes pass after pass - one theme, dry run unless `--apply`, `assign="auto"` templates kept |
946
958
  | `theme_delete.php` | remove a theme completely through the plugin's own routine; refuses the live one |
959
+ | `fix_text_runs.py` | wrap text runs that sit directly under a button, menu-link or other non-text element (built before v1.34.1) in an Inherited text `text` node, so the editor can edit them - every master, template and component, through each document's own commit; dry run unless `--apply`, idempotent, component overrides kept |
960
+ | `scan_inline_tags.py` | read only: list every `wysiwyg-text` run whose text holds HTML tags (printed literally on 1.0.11+), with the nearest attrID above it, across every master, template and component - run it before or after a site updates from 1.0.10 |
947
961
  | `verify_slider.py` | the slider in a real browser: does it advance, do the arrows and bullets drive it, does the keyboard, does it stop when motion is not wanted - `--label`/`--append` put several sliders in one table, which is where a carousel and a plain slider can be held against each other |
948
962
  | `verify_navigation.py` | a multi-page site: is every menu item a real `<a href>`, does every page answer 200 (a template that was never bound answers 406 with an empty body, which only a logged-out visitor sees), and with `--viewports` does any page scroll SIDEWAYS - the one question no per-page checker asks - and whether every in-page `#fragment` resolves ON THE PAGE THAT CARRIES IT, which an HTTP check cannot see: a bare `#services` in a SHARED header fetches the current page, answers 200 everywhere, and does nothing on every page but the one that has that section |
949
963
  | `verify_dialog.py` | the modal in a real browser (1.0.9 and 1.0.10 alike: open is read as `:popover-open` or `dialog.open`): does it open, close, answer Esc, remember, cap - and does an OpenStreetMap carry the coordinates it was given |
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.34.1"
23
+ "version": "1.34.3"
24
24
  },
25
25
  "loaderBehaviour": "Upload via Settings -> Skills -> Upload. Claude.ai parses SKILL.md frontmatter and surfaces the skill in your library. The extraction tool (extract-block-schema.php) needs a live WP-CLI connection and won't run in the sandbox; use it from a local terminal against your own site instead.",
26
26
  "uploadSteps": [
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.34.1"
23
+ "version": "1.34.3"
24
24
  },
25
25
  "loaderBehaviour": "Auto-loads on session start when SKILL.md frontmatter parses successfully.",
26
26
  "verified": true,
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.34.1"
23
+ "version": "1.34.3"
24
24
  },
25
25
  "loaderBehaviour": "Confirmed (2026-07-11): Codex CLI natively supports the SKILL.md spec. Place SKILL.md under .codex/skills/<name>/ (project) or ~/.codex/skills/<name>/ (personal) and Codex loads the name+description at session start, then the full body on demand. A parallel, broader convention .agents/skills/ (searched from cwd up to repo root, then ~/.agents/skills/) also exists across multiple tools - if your Codex CLI version prioritizes that path instead, mirror the same SKILL.md there.",
26
26
  "verified": true,
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.34.1"
23
+ "version": "1.34.3"
24
24
  },
25
25
  "loaderBehaviour": "CHANGED as of 2026-07-11: GitHub Copilot added a proper '.github/skills/' Agent Skills directory (December 2025), alongside the older single-file .github/copilot-instructions.md convention. This config targets the new skills-directory form. If your Copilot version predates this (pre Dec 2025), use the instructions-append fallback instead (see fallback below).",
26
26
  "fallback": {
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.34.1"
23
+ "version": "1.34.3"
24
24
  },
25
25
  "loaderBehaviour": "CHANGED as of 2026-07-11: Gemini CLI now natively supports the same SKILL.md standard as Claude Code and Codex CLI - the same directory-based skill works unmodified. Gemini CLI discovers skills in this precedence order: built-in, extension skills, ~/.gemini/skills/ (personal), .gemini/skills/ (project, shared via version control). At session start Gemini injects each discovered skill's name+description into the system prompt and calls activate_skill when a task matches.",
26
26
  "verified": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mosaic-headless",
3
- "version": "1.34.1",
3
+ "version": "1.34.3",
4
4
  "description": "AI-agent skill: build Mosaic Pro (Nextend) WordPress sites by writing the underlying data model directly - 23 custom tables, no visual editor, no DOM. Every node type, style property and node property swept against a live install and asserted on the delivered HTML and compiled CSS. Installs into Claude Code, Cursor, Codex CLI, Gemini CLI, Copilot, Continue, Windsurf and Claude.ai.",
5
5
  "keywords": [
6
6
  "wordpress",
@@ -40,6 +40,7 @@ import uuid
40
40
  sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
41
41
  from build_page import (refresh_node_ids, # noqa: E402
42
42
  COMPONENT_USES,
43
+ INHERITED_TEXT_VARIANT,
43
44
  VAR_IDS,
44
45
  Surface,
45
46
  flatten,
@@ -240,9 +241,22 @@ def ensure_components(client, cfg, site, surface):
240
241
  by_parent = {}
241
242
  for node in doc2[key]:
242
243
  by_parent.setdefault(node.get("parentID"), []).append(node)
244
+ def text_child(nid):
245
+ kids = by_parent.get(nid, [])
246
+ run = next((c for c in kids if c["type"].startswith("wysiwyg-")), None)
247
+ if run:
248
+ return run
249
+ # a button's runs sit one level down, in the Inherited text `text`
250
+ # node build_page wraps them in (wrap_text_runs)
251
+ wrap = next((c for c in kids if c["type"] == "text" and not
252
+ (c.get("data") or {}).get("attrID") and
253
+ ((c.get("data") or {}).get("style") or {}).get("variant")
254
+ == INHERITED_TEXT_VARIANT), None)
255
+ return wrap and next((c for c in by_parent.get(wrap["ID"], [])
256
+ if c["type"].startswith("wysiwyg-")), None)
257
+
243
258
  for attr, nid in nodes.items():
244
- child = next((c for c in by_parent.get(nid, [])
245
- if c["type"].startswith("wysiwyg-")), None)
259
+ child = text_child(nid)
246
260
  if child:
247
261
  texts[attr] = child["ID"]
248
262
  out[name] = {"id": cid, "nodes": nodes, "texts": texts}
@@ -0,0 +1,140 @@
1
+ #!/usr/bin/env python3
2
+ """Put text runs that sit directly under a button (or any non-text element) into
3
+ an Inherited text `text` node, so the Mosaic editor can edit them.
4
+
5
+ python fix_text_runs.py --config site.json # dry run: lists what it would move
6
+ python fix_text_runs.py --config site.json --apply # commit, document by document
7
+
8
+ Why this exists
9
+ ---------------
10
+ Through v1.34.0, build_page.py's `"text"` shorthand wrote a button as
11
+ `button > wysiwyg-text`. That renders exactly like the editor's own button, but
12
+ the editor builds `button > text (Inherited text variant) > wysiwyg-text`, and
13
+ without the middle node it has nothing to edit: the navigator shows the button
14
+ with no child, and a double-click opens only the link settings. The same holds
15
+ for menu-link, dropdown-toggle, tabs-tab, list-item, submit labels, pagination
16
+ and multi-step buttons. Only the types in DIRECT_TEXT_HOSTS hold runs directly.
17
+
18
+ A rebuild with v1.34.1+ fixes a page; this fixes a site in place without one.
19
+ For each run of consecutive wysiwyg-* children under a non-host element it writes
20
+ one new `text` node in the run's place and moves the runs into it. The runs keep
21
+ their ids, so a component instance's override of a run still points at it.
22
+
23
+ Every document on the theme is covered: masters, templates and components. The
24
+ changes go through each document's own commit, the same path the editor uses,
25
+ never SQL. Back up the wp_mosaic_* tables first all the same.
26
+ """
27
+ import mosaic_config
28
+ import argparse
29
+ import os
30
+ import sys
31
+ import uuid
32
+
33
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
34
+ from build_page import DIRECT_TEXT_HOSTS, INHERITED_TEXT_VARIANT # noqa: E402
35
+ from sweep_node_types import Client, envelopes, exceptions_of, unwrap # noqa: E402
36
+
37
+
38
+ def documents(client):
39
+ """(instance, key, label) for every document on the theme that holds nodes."""
40
+ out, seen = [], set()
41
+ tei = unwrap(client.get("adminTemplateEditorInstance"), "adminTemplateEditorInstance")
42
+ for tpl in tei.get("template", []):
43
+ master = tpl["masterID"]
44
+ if master not in seen:
45
+ seen.add(master)
46
+ out.append(("masterDocumentInstance/%s" % master, "node/master/%s" % master,
47
+ "master %s" % master[:8]))
48
+ out.append(("templateDocumentInstance/%s/%s" % (master, tpl["ID"]),
49
+ "node/template/%s" % tpl["ID"],
50
+ "template %s %s" % (tpl["ID"][:8], (tpl.get("data") or {}).get("name") or "")))
51
+ comps = unwrap(client.get("adminComponentsEditorInstance"), "adminComponentsEditorInstance")
52
+ for c in comps.get("component", []):
53
+ if c.get("status") == "delete":
54
+ continue
55
+ out.append(("componentDocumentInstance/%s" % c["ID"], "node/component/%s" % c["ID"],
56
+ "component %s %s" % (c["ID"][:8], c.get("name") or "")))
57
+ return out
58
+
59
+
60
+ def plan(nodes):
61
+ """Revision records that wrap every misplaced run, and a count per parent type."""
62
+ live = [n for n in nodes if n.get("status") != "delete"]
63
+ kids = {}
64
+ for n in live:
65
+ kids.setdefault(n.get("parentID"), []).append(n)
66
+ records, counts = [], {}
67
+ for parent in live:
68
+ ptype = parent["type"]
69
+ if (ptype in DIRECT_TEXT_HOSTS or ptype.startswith("wysiwyg-")
70
+ or ptype.startswith("component-instance")):
71
+ continue
72
+ children = sorted((c for c in kids.get(parent["ID"], [])
73
+ if c.get("parentType") == "node"),
74
+ key=lambda c: c.get("ordering") or "")
75
+ groups, run = [], []
76
+ for c in children:
77
+ if c["type"].startswith("wysiwyg-"):
78
+ run.append(c)
79
+ elif run:
80
+ groups.append(run)
81
+ run = []
82
+ if run:
83
+ groups.append(run)
84
+ for run in groups:
85
+ wrap_id = str(uuid.uuid4())
86
+ first = run[0]
87
+ records.append({"newRevisionRecord": {
88
+ "ID": wrap_id, "parentType": "node", "parentID": parent["ID"],
89
+ "ordering": first.get("ordering") or "a0", "status": "publish",
90
+ "revision": "", "version": "", "type": "text",
91
+ "data": {"style": {"variant": INHERITED_TEXT_VARIANT}},
92
+ "documentType": first.get("documentType"),
93
+ "documentID": first.get("documentID")},
94
+ "originalRevisionRecord": None})
95
+ for c in run:
96
+ records.append({"newRevisionRecord": dict(c, parentID=wrap_id),
97
+ "originalRevisionRecord": c})
98
+ counts[ptype] = counts.get(ptype, 0) + 1
99
+ return records, counts
100
+
101
+
102
+ def main():
103
+ ap = argparse.ArgumentParser()
104
+ ap.add_argument("--config",
105
+ help="JSON with base/cookie/nonce/themeID; omit it and the MOSAIC_* environment variables supply them")
106
+ ap.add_argument("--apply", action="store_true", help="commit; without it nothing is written")
107
+ a = ap.parse_args()
108
+ client = Client(mosaic_config.load(a.config))
109
+
110
+ total, totals = 0, {}
111
+ for instance, key, label in documents(client):
112
+ resp = client.get(instance)
113
+ if "_httperror" in resp or "response" not in resp:
114
+ print(" skip %-40s (could not read)" % label)
115
+ continue
116
+ doc = resp["response"]
117
+ records, counts = plan(doc.get(key) or [])
118
+ if not counts:
119
+ continue
120
+ n = sum(counts.values())
121
+ total += n
122
+ for k, v in counts.items():
123
+ totals[k] = totals.get(k, 0) + v
124
+ print(" %-40s %3d run(s): %s" % (label, n,
125
+ ", ".join("%s %d" % kv for kv in sorted(counts.items()))))
126
+ if a.apply:
127
+ err = exceptions_of(client.commit(instance, envelopes(doc), {key: records}))
128
+ if err:
129
+ sys.exit("commit failed on %s: %s" % (label, err[:400]))
130
+
131
+ print("%s %d run(s) under %s" % ("wrapped" if a.apply else "would wrap", total,
132
+ ", ".join("%s %d" % kv for kv in sorted(totals.items())) or "nothing"))
133
+ if total and not a.apply:
134
+ print("dry run - nothing written. Add --apply to commit.")
135
+ elif total:
136
+ print("purge the page cache, then open a page in the editor and double-click a button.")
137
+
138
+
139
+ if __name__ == "__main__":
140
+ main()
@@ -0,0 +1,87 @@
1
+ #!/usr/bin/env python3
2
+ """List text runs that carry HTML tags - the runs Mosaic 1.0.11 prints as literal
3
+ `<span>` / `<br>` / `<a href=...>` on the page. Read only.
4
+
5
+ python scan_inline_tags.py --config site.json
6
+
7
+ Why this exists
8
+ ---------------
9
+ Through 1.0.10 a `wysiwyg-text` run was output as raw HTML, so a site could carry
10
+ `<span class=...>`, `<a href=...>` or `<br>` inside its text and look right. 1.0.11
11
+ escapes the run (WysiwygTextNodeMResource::getEscapedText), and the plugin updates
12
+ itself, so those tags appear on the live page as visible text the moment the site
13
+ updates - with nothing in the data changing. build_page.py refuses tags in a run, so
14
+ pages it builds are clean; sites written by another builder, by hand, or by an older
15
+ converter may not be.
16
+
17
+ Run it before updating a site to 1.0.11, or after, to find what already shows tags.
18
+ Rebuild the listed nodes with inline nodes (wysiwyg-span / -link / -linebreak, see
19
+ inline_html.py) - the scan points at them; it does not rewrite anything.
20
+ """
21
+ import mosaic_config
22
+ import argparse
23
+ import os
24
+ import sys
25
+
26
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
27
+ from build_page import PROSE_TAG # noqa: E402
28
+ from fix_text_runs import documents # noqa: E402
29
+ from sweep_node_types import Client # noqa: E402
30
+
31
+
32
+ def scan(nodes):
33
+ """(run, nearest ancestor with an attrID or None, tags found) for each tagged run."""
34
+ live = {n["ID"]: n for n in nodes if n.get("status") != "delete"}
35
+ out = []
36
+ for n in live.values():
37
+ if n["type"] != "wysiwyg-text":
38
+ continue
39
+ text = (n.get("data") or {}).get("text")
40
+ if not isinstance(text, str):
41
+ continue
42
+ tags = PROSE_TAG.findall(text)
43
+ if not tags:
44
+ continue
45
+ anchor, p = None, live.get(n.get("parentID"))
46
+ while p is not None and anchor is None:
47
+ if (p.get("data") or {}).get("attrID"):
48
+ anchor = p
49
+ p = live.get(p.get("parentID"))
50
+ out.append((n, anchor, tags))
51
+ return out
52
+
53
+
54
+ def main():
55
+ ap = argparse.ArgumentParser()
56
+ ap.add_argument("--config",
57
+ help="JSON with base/cookie/nonce/themeID; omit it and the MOSAIC_* environment variables supply them")
58
+ a = ap.parse_args()
59
+ # page text goes to the console as-is; a cp950/cp1252 console must not end the scan
60
+ sys.stdout.reconfigure(errors="replace")
61
+ client = Client(mosaic_config.load(a.config))
62
+
63
+ total = 0
64
+ for instance, key, label in documents(client):
65
+ resp = client.get(instance)
66
+ if "_httperror" in resp or "response" not in resp:
67
+ print(" skip %-40s (could not read)" % label)
68
+ continue
69
+ hits = scan(resp["response"].get(key) or [])
70
+ if not hits:
71
+ continue
72
+ total += len(hits)
73
+ print("%s: %d run(s)" % (label, len(hits)))
74
+ for n, anchor, tags in hits:
75
+ where = "#%s" % anchor["data"]["attrID"] if anchor else "(no attrID above)"
76
+ text = " ".join(n["data"]["text"].split())
77
+ print(" %s %-24s %s" % (n["ID"][:8], where, text[:100] + ("..." if len(text) > 100 else "")))
78
+ print(" tags: %s" % " ".join(sorted(set(t.split()[0].rstrip(">") + ">" for t in tags))))
79
+
80
+ print("%d run(s) with HTML tags%s" % (total, "" if total else " - nothing prints a literal tag"))
81
+ if total:
82
+ print("On 1.0.11+ these print the tags as text. Rebuild them as wysiwyg-span / -link / "
83
+ "-linebreak nodes (inline_html.py turns an HTML fragment into those).")
84
+
85
+
86
+ if __name__ == "__main__":
87
+ main()