Skip to content

Commit 8e2327d

Browse files
committed
style(cppreference): format codes.
1 parent f8d5574 commit 8e2327d

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from cppref.core.cppreference.cppreference import process
2-
from cppref.core.cppreference.cppreference import processor
3-
1+
from cppref.core.cppreference.cppreference import process, processor
42

53
__all__ = ["process", "processor"]

src/cppref/core/cppreference/cppreference.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
from lxml import etree, html
55

6-
from cppref.typing_ import Record
76
from cppref.core.cppreference.description import dl
87
from cppref.core.cppreference.div import div
9-
from cppref.core.cppreference.utils import collect
108
from cppref.core.cppreference.table import table
9+
from cppref.core.cppreference.utils import collect
1110
from cppref.core.processor import Processor
11+
from cppref.typing_ import Record
1212

1313
processor: Processor[[], str] = Processor()
1414

@@ -149,7 +149,7 @@ def process(document: str, record: Record, p: Processor[[], str] = processor) ->
149149
slogan = "C++ Programmer\\'s Manual"
150150
texts.append(f'.TH "{heading_text}" 3 "{date}" "{source}" "{slogan}"')
151151
texts.append('.SH "NAME"')
152-
texts.append(rf'cppreference{record.id} \- {heading_text}')
152+
texts.append(rf"cppreference{record.id} \- {heading_text}")
153153
texts.append('.SH "DEFINITION"')
154154

155155
# remove the table of contents which does not make sense

src/cppref/core/cppreference/description.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import re
2+
23
from lxml.html import HtmlElement
34

45
from cppref.core.cppreference.utils import collect

src/cppref/core/cppreference/div.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import re
2+
23
from lxml.etree import strip_tags
34
from lxml.html import HtmlElement
45

56
from cppref.core.processor import Processor
67

7-
88
processor = Processor[[], str]()
99

1010

src/cppref/core/cppreference/table/t_dcl_begin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
from lxml.html import HtmlElement
55

6-
from cppref.core.cppreference.table.width import table_width
76
from cppref.core.cppreference.table.base import Table
87
from cppref.core.cppreference.table.typing_ import RowSpec, RowText, TabInfo
8+
from cppref.core.cppreference.table.width import table_width
99
from cppref.core.processor import Processor
1010

1111

src/cppref/core/cppreference/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from cppref.core.processor import Processor
44

5-
65
# class Utils:
76
# @staticmethod
87
# def collect(element: HtmlElement, processor: Processor[[], str]):

0 commit comments

Comments
 (0)