solidprivacy commited on
Commit
aee641e
·
1 Parent(s): 8ba071c

Fix display integration operator anchor

Browse files
.github/workflows/bound_placeholder_display_compaction.yml CHANGED
@@ -25,6 +25,18 @@ jobs:
25
  run: |
26
  set -euo pipefail
27
  git checkout -B scrub-bound-placeholder-display-compaction origin/scrub-bound-placeholder-display-compaction
 
 
 
 
 
 
 
 
 
 
 
 
28
  python ops/implement_bound_placeholder_display_compaction.py
29
  git config user.name "github-actions[bot]"
30
  git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
 
25
  run: |
26
  set -euo pipefail
27
  git checkout -B scrub-bound-placeholder-display-compaction origin/scrub-bound-placeholder-display-compaction
28
+ python - <<'PY'
29
+ from pathlib import Path
30
+ path = Path("ops/implement_bound_placeholder_display_compaction.py")
31
+ text = path.read_text(encoding="utf-8")
32
+ start_marker = '''patch(\n "side_by_side_review_panel_ui.py",\n """.sp-side-by-side-highlight-token'''
33
+ end_marker = '''\n\npatch(\n "side_by_side_review_panel_ui.py",\n \'\'\'def _highlighted_processed_inner_html'''
34
+ start = text.find(start_marker)
35
+ end = text.find(end_marker, start)
36
+ if start < 0 or end < 0:
37
+ raise SystemExit("CSS patch block anchors not found")
38
+ path.write_text(text[:start] + text[end + 2 :], encoding="utf-8")
39
+ PY
40
  python ops/implement_bound_placeholder_display_compaction.py
41
  git config user.name "github-actions[bot]"
42
  git config user.email "41898282+github-actions[bot]@users.noreply.github.com"