소스 검색

Minor fixes.

tags/v0.1
Ben Kurtovic 11 년 전
부모
커밋
c3f53f2e84
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      mwparserfromhell/nodes/tag.py

+ 3
- 3
mwparserfromhell/nodes/tag.py 파일 보기

@@ -65,8 +65,8 @@ class Tag(Node):
TAG_POEM = 202

# Lists of tags:
TAGS_INVISIBLE = [TAG_REF, TAG_GALLERY, TAG_MATH, TAG_NOINCLUDE]
TAGS_VISIBLE = range(300) - TAGS_INVISIBLE
TAGS_INVISIBLE = set((TAG_REF, TAG_GALLERY, TAG_MATH, TAG_NOINCLUDE))
TAGS_VISIBLE = set(range(300)) - TAGS_INVISIBLE

def __init__(self, type_, tag, contents, attrs=None, showtag=True,
self_closing=False, open_padding=0, close_padding=0):
@@ -120,7 +120,7 @@ class Tag(Node):
return None

def translate(self):
translations {
translations = {
self.TAG_ITALIC: ("''", "''"),
self.TAG_BOLD: ("'''", "'''"),
self.TAG_UNORDERED_LIST: ("*", ""),


불러오는 중...
취소
저장