From 37cbe65ac8677456348f5127611bffc23ff77348 Mon Sep 17 00:00:00 2001 From: mihailkudravcev Date: Thu, 23 Jul 2026 15:30:43 +0300 Subject: [PATCH] Replace Unicode minus with ASCII hyphen in export stats. --- CHANGELOG.md | 6 ++++++ README.md | 2 +- VERSION | 2 +- export1c_help/export.py | 4 ++-- export_1c_help.py | 6 +++--- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37535be..23d369e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 0daa97f..8b70b1e 100644 --- a/README.md +++ b/README.md @@ -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[]` | Версия: `/VERSION` или `` в `Configuration.xml` (`--config-version` перекрывает). diff --git a/VERSION b/VERSION index 0d91a54..9e11b32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.0 +0.3.1 diff --git a/export1c_help/export.py b/export1c_help/export.py index 386f4da..92c08fe 100644 --- a/export1c_help/export.py +++ b/export1c_help/export.py @@ -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( diff --git a/export_1c_help.py b/export_1c_help.py index 0de8007..9fa5472 100644 --- a/export_1c_help.py +++ b/export_1c_help.py @@ -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(