Replace Unicode minus with ASCII hyphen in export stats.

This commit is contained in:
mihailkudravcev
2026-07-23 15:30:43 +03:00
parent 02a05d34d0
commit 37cbe65ac8
5 changed files with 13 additions and 7 deletions
+6
View File
@@ -2,6 +2,12 @@
All notable changes to **export_1c_help** are documented in this file.
## [0.3.1] - 2026-07-23
### Fixed
- Replace Unicode minus (U+2212 ``) with ASCII `-` in Home/History/CLI stats
## [0.3.0] - 2026-07-23
### Added
+1 -1
View File
@@ -125,7 +125,7 @@ python3 export_1c_help.py push -c /path/to/config
|-----|-----|
| `Home.md` | версия конфигурации **этой** выгрузки |
| подвал страницы | версия выгрузки; **создана в** / **изменена в** |
| `History.md` | сводка +//~ и удалённые (`deleted_in`) |
| `History.md` | сводка +/-/~ и удалённые (`deleted_in`) |
| `manifest.json` | lifecycle + `content_hash` + `exports[]` |
Версия: `<config>/VERSION` или `<Version>` в `Configuration.xml` (`--config-version` перекрывает).
+1 -1
View File
@@ -1 +1 @@
0.3.0
0.3.1
+2 -2
View File
@@ -86,7 +86,7 @@ def build_home(
f"- **Версия конфигурации (эта выгрузка):** `{config_version}`{name_line}",
f"- Источник: `{source_label}`",
f"- Страниц: **{len(pages)}** "
f"(+{life.created_count} / ~{life.edited_count} / ={life.unchanged_count} / {life.deleted_count})",
f"(+{life.created_count} / ~{life.edited_count} / ={life.unchanged_count} / -{life.deleted_count})",
f"- Удалённых (накопительно): **{len(life.deleted)}** — см. [[History]]",
f"- Инструмент: `export_1c_help` v{__version__}",
f"- Дата: {datetime.now(timezone.utc).strftime('%Y-%m-%d %H:%M UTC')}",
@@ -183,7 +183,7 @@ def build_history(
lines.append("_Нет сохранённой истории (первая выгрузка с учётом версий)._")
lines.append("")
else:
lines.append("| Версия конфигурации | Дата (UTC) | Страниц | + | ~ | |")
lines.append("| Версия конфигурации | Дата (UTC) | Страниц | + | ~ | - |")
lines.append("|---------------------|------------|---------|---|---|---|")
for row in prev_exports:
lines.append(
+3 -3
View File
@@ -170,7 +170,7 @@ def _print_stats(stats, dest: Path) -> None:
print(
f"OK: config={stats.config_version} "
f"written={stats.pages_written} "
f"+{stats.created_count}/~{stats.edited_count}/={stats.unchanged_count}/{stats.deleted_count} "
f"+{stats.created_count}/~{stats.edited_count}/={stats.unchanged_count}/-{stats.deleted_count} "
f"skipped_empty={stats.pages_skipped_empty} "
f"total={stats.pages_total} "
f"images={stats.images_copied}{dest}"
@@ -260,7 +260,7 @@ def cmd_push(args: argparse.Namespace) -> int:
print(
f"convert: config={stats.config_version} "
f"written={stats.pages_written} "
f"+{stats.created_count}/~{stats.edited_count}/={stats.unchanged_count}/{stats.deleted_count} "
f"+{stats.created_count}/~{stats.edited_count}/={stats.unchanged_count}/-{stats.deleted_count} "
f"{out}"
)
if args.dry_run:
@@ -269,7 +269,7 @@ def cmd_push(args: argparse.Namespace) -> int:
message = args.message or (
f"export_1c_help v{__version__}: sync help cfg {stats.config_version} "
f"({stats.pages_written} pages, +{stats.created_count}/~{stats.edited_count}/{stats.deleted_count})"
f"({stats.pages_written} pages, +{stats.created_count}/~{stats.edited_count}/-{stats.deleted_count})"
)
try:
push_wiki(