• R/O
  • SSH
  • HTTPS

autocodeforsql: Commit


Commit MetaInfo

Revision196 (tree)
Time2019-04-08 14:46:31
Authorhilinwei

Log Message

Change Summary

Incremental Difference

--- AutoEpub3/AutoEpub6.vb (revision 195)
+++ AutoEpub3/AutoEpub6.vb (revision 196)
@@ -219,7 +219,7 @@
219219 For Each edit As String In listTemp
220220
221221 If edit.IndexOf("quote") > -1 Then
222- listKK.Add(edit.Replace(" class=""quote"">", "divSP1div"))
222+ listKK.Add(edit.Replace(" class=""quote"">", emEpub6.spText_EmDash))
223223
224224 Else
225225 listKK.Add(edit.Replace(">", ""))
--- AutoEpub3/cEpub6.vb (revision 195)
+++ AutoEpub3/cEpub6.vb (revision 196)
@@ -794,35 +794,31 @@
794794
795795 End Function
796796
797-
798797 Private Function htmlAddText(ByVal sText As String) As String
799798
799+ Dim bSP As Boolean = False
800+
800801 Dim sbText As New StringBuilder()
801802
802- If sText.IndexOf("divSP1div") > -1 Then
803- sText = sText.Replace("divSP1div", "")
804- sbText.Append("<p class=""mobiTextSP1"">")
805-
806- sbText.Append("[")
807- sbText.Append(sText)
808- sbText.Append("]")
809-
810-
811- Else
812- sbText.Append("<p class=""mobiText"">")
813- sbText.Append(sText)
803+ If sText.IndexOf(emEpub6.spText_EmDash) > -1 Then
804+ sText = sText.Replace(emEpub6.spText_EmDash, "——")
805+ bSP = True
814806 End If
815807
816-
817-
818-
819-
808+ sbText.Append("<p class=""mobiText"">")
809+ sbText.Append(sText)
820810 If sText.Trim() = "" Then
821811 sbText.Append(" ")
822812 End If
823813 sbText.Append("</p>")
814+
815+ If bSP Then
816+ sbText.Append("<p class=""mobiText"">  </p>")
817+ End If
818+
824819 htmlAddText = sbText.ToString().Replace("[#2字下げ]", "  ")
825820
821+
826822 End Function
827823
828824 Private Function htmlAddImg(ByVal sText As String) As String
@@ -1073,4 +1069,7 @@
10731069 Dep3
10741070 End Enum
10751071
1072+ Public Const spText_EmDash As String = "spText_EmDash"
1073+
1074+
10761075 End Class
\ No newline at end of file
Show on old repository browser