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