mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5639 from stephenfin/text-writer-nits
Fix two nits with the TextBuilder class
This commit is contained in:
commit
5c6def439b
@ -19,15 +19,12 @@ from docutils.utils import column_width
|
||||
|
||||
from sphinx import addnodes
|
||||
from sphinx.locale import admonitionlabels, _
|
||||
from sphinx.util import logging
|
||||
|
||||
if False:
|
||||
# For type annotation
|
||||
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union # NOQA
|
||||
from sphinx.builders.text import TextBuilder # NOQA
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Cell:
|
||||
"""Represents a cell in a table.
|
||||
@ -393,7 +390,6 @@ class TextWriter(writers.Writer):
|
||||
|
||||
|
||||
class TextTranslator(nodes.NodeVisitor):
|
||||
sectionchars = '*=-~"+`'
|
||||
|
||||
def __init__(self, document, builder):
|
||||
# type: (nodes.Node, TextBuilder) -> None
|
||||
|
Loading…
Reference in New Issue
Block a user