Skip to content

Commit

Permalink
small doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rprimet committed Aug 24, 2023
1 parent 7ad296e commit 57f9aa8
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/catleg/find_changes.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
"""
description copied from ocaml original
(** Parses the Catala master source file and checks each article:
- if the article has a LégiFrance ID, checks the text of the article in the
source code vs the text from LégiFrance;
- if the article has an expiration date, display the difference between the
current version of the article and the next one on LégiFrance;
- fill each [@@Include ...@@] tag with the contents retrieved from
LégiFrance *)
"""
import sys
import warnings
from pathlib import Path
Expand Down Expand Up @@ -69,4 +57,9 @@ def _reformat(paragraph: str):


def _escape_ref_text(paragraph: str):
"""
Escape markdown special chars from reference text.
Since we use the "raw text" version of the Legifrance article,
we escape brackets and asteriks unconditionnally.
"""
return paragraph.replace("[", r"\[").replace("]", r"\]").replace("*", r"\*")

0 comments on commit 57f9aa8

Please sign in to comment.