Loading md_to_docx_converter/convert.py +7 −4 Original line number Diff line number Diff line Loading @@ -164,8 +164,11 @@ CSS_SRC = list_css_files() if not os.path.exists(DEST): os.makedirs(DEST) SRC_MEDIA_PATH = os.path.join(SRC, "media") DEST_MEDIA_PATH = os.path.join(DEST, "media") # Copy images over if not os.path.exists(f"{SRC}/media"): if not os.path.exists(SRC_MEDIA_PATH): print( p_error( f"Source directory {SRC} must contain a media directory containing the images used in the document" Loading @@ -173,10 +176,10 @@ if not os.path.exists(f"{SRC}/media"): ) sys.exit(1) if os.path.exists(f"{DEST}/media"): shutil.rmtree(f"{DEST}/media") if os.path.exists(DEST_MEDIA_PATH): shutil.rmtree(DEST_MEDIA_PATH) shutil.copytree(f"{SRC}/media", f"{DEST}/media") shutil.copytree(SRC_MEDIA_PATH, DEST_MEDIA_PATH) # endregion Loading md_to_docx_converter/templates/document_skeleton/technical_specification/clause-2_References.md +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ The following referenced documents are necessary for the application of the pres [n.1] Reference body [n.2] Reference body :: ::: ## 2.2 Informative references Loading Loading
md_to_docx_converter/convert.py +7 −4 Original line number Diff line number Diff line Loading @@ -164,8 +164,11 @@ CSS_SRC = list_css_files() if not os.path.exists(DEST): os.makedirs(DEST) SRC_MEDIA_PATH = os.path.join(SRC, "media") DEST_MEDIA_PATH = os.path.join(DEST, "media") # Copy images over if not os.path.exists(f"{SRC}/media"): if not os.path.exists(SRC_MEDIA_PATH): print( p_error( f"Source directory {SRC} must contain a media directory containing the images used in the document" Loading @@ -173,10 +176,10 @@ if not os.path.exists(f"{SRC}/media"): ) sys.exit(1) if os.path.exists(f"{DEST}/media"): shutil.rmtree(f"{DEST}/media") if os.path.exists(DEST_MEDIA_PATH): shutil.rmtree(DEST_MEDIA_PATH) shutil.copytree(f"{SRC}/media", f"{DEST}/media") shutil.copytree(SRC_MEDIA_PATH, DEST_MEDIA_PATH) # endregion Loading
md_to_docx_converter/templates/document_skeleton/technical_specification/clause-2_References.md +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ The following referenced documents are necessary for the application of the pres [n.1] Reference body [n.2] Reference body :: ::: ## 2.2 Informative references Loading