changeset 851:7ca68e8c2702

Attribute "start=" passed to OL
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 30 Jun 2020 08:52:20 +0900
parents f11b80b4d005
children 3e09ac711f69
files s4-funcs.sh
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/s4-funcs.sh	Tue Jun 30 08:33:54 2020 +0900
+++ b/s4-funcs.sh	Tue Jun 30 08:52:20 2020 +0900
@@ -705,8 +705,11 @@
 	:top
 	 s/\n//;
 	 s/^  *//;			# 2周目以降: 行頭空白削除
-	 s,[1-9][0-9]*\. ,,;			# まず行頭の "* " を消しておく
 	 H;				# 置き換え結果をホールドスペースに追加
+	 x;
+	 s,^<ol>\n\([1-9][0-9]*\)\. ,<ol start="\1"><li>,;	# 1行目のみ
+	 s,[1-9][0-9]*\. ,,;			# まず行頭の "N. " を消しておく
+	 x;
 	 s/.*//;			# パターンスペースは消しておく
 	 # ↓最終行なら残ったホールドスペース処理のため :cont へ
 	 $ b cont

yatex.org