UseModWiki소스수정/이중세로선| -3,7 +3,7 |
| * 페이지 내에 테이블이 전혀 없을 경우는 제대로 출력이 되는데, 한 번 이상 테이블이 사용된 경우는 테이블이 아닌 || 도 td 태그로 치환되어 버리는 문제가 있었다. |
| * [[조프]]님의 패치를 적용하여 해결 |
| : |
| {{{perl |
| {{{#!vim perl |
| sub WikiLinesToHtml { |
| ... |
| while (@htmlStack > $depth) { # Close tags as needed |
| -18,9 +18,29 |
| }; |
| $pageHtml .= "</" . $tag . ">\n"; # added end luke |
| } |
| if ($depth > 0) { |
| $depth = $IndentLimit if ($depth > $IndentLimit); |
| if (@htmlStack) { # Non-empty stack |
| $oldCode = pop(@htmlStack); |
| if ($oldCode ne $code) { |
| ############### |
| ### added by gypark |
| ### 줄 중간 || 문제 해결 |
| ### from Jof4002's patch |
| if ($oldCode eq "TABLE") { |
| $TableMode = 0; |
| } |
| ### |
| ############### |
| $pageHtml .= "</$oldCode><$code>\n"; |
| } |
| push(@htmlStack, $code); |
| ... |
| } |
| }}} |
| == Notes == |
| 테이블 바로 다음 줄에 콜론을 이용한 들여쓰기가 있을 경우에, 그 뒤에 나오는 || 가 표로 취급되는 문제가 있는 것을 발견하여 다시 [[조프]]님이 수정했습니다. 위 패치에서 두번째 주석뭉치 부분이 추가된 부분입니다. <mysign([[Raymundo]],2003-2-24 10:19 pm)> |
| ---- |
| [[위키위키분류]] |
sub WikiLinesToHtml { ... while (@htmlStack > $depth) { # Close tags as needed # $pageHtml .= "</" . pop(@htmlStack) . ">\n"; -- deleted luke $tag = pop(@htmlStack); # added luke if ($tag eq "TABLE") { ### 다음 두 라인 교체 # $pageHtml .= "</TR>\n"; # $tag = "table" $TableMode = 0; ### }; $pageHtml .= "</" . $tag . ">\n"; # added end luke } if ($depth > 0) { $depth = $IndentLimit if ($depth > $IndentLimit); if (@htmlStack) { # Non-empty stack $oldCode = pop(@htmlStack); if ($oldCode ne $code) { ############### ### added by gypark ### 줄 중간 || 문제 해결 ### from Jof4002's patch if ($oldCode eq "TABLE") { $TableMode = 0; } ### ############### $pageHtml .= "</$oldCode><$code>\n"; } push(@htmlStack, $code); ... }