mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8272 from francoisfreitag/strip_whitespaces
Strip trailing whitespaces and normalize line endings
This commit is contained in:
@@ -1 +1 @@
|
||||
exclude_patterns = ['_build']
|
||||
exclude_patterns = ['_build']
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C)
|
||||
# Copyright (C)
|
||||
# This file is distributed under the same license as the Sphinx intl <Tests> package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
|
||||
@@ -1 +1 @@
|
||||
exclude_patterns = ['_build']
|
||||
exclude_patterns = ['_build']
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
recursive-include test_theme *.conf
|
||||
|
||||
recursive-include test_theme *.conf
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
html_theme = 'test-theme'
|
||||
html_theme_path = ['.', 'test_theme']
|
||||
exclude_patterns = ['_build']
|
||||
html_theme = 'test-theme'
|
||||
html_theme_path = ['.', 'test_theme']
|
||||
exclude_patterns = ['_build']
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
=======
|
||||
Theming
|
||||
=======
|
||||
|
||||
|
||||
=======
|
||||
Theming
|
||||
=======
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name='test-theme',
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
entry_points="""
|
||||
[sphinx_themes]
|
||||
path = test_theme:get_path
|
||||
""",
|
||||
)
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name='test-theme',
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
entry_points="""
|
||||
[sphinx_themes]
|
||||
path = test_theme:get_path
|
||||
""",
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
|
||||
|
||||
def get_path():
|
||||
return os.path.dirname(os.path.abspath(__file__))
|
||||
import os
|
||||
|
||||
|
||||
def get_path():
|
||||
return os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
@@ -26,7 +26,7 @@ def test_ModuleAnalyzer_get_module_source():
|
||||
ModuleAnalyzer.get_module_source('builtins')
|
||||
with pytest.raises(PycodeError):
|
||||
ModuleAnalyzer.get_module_source('itertools')
|
||||
|
||||
|
||||
|
||||
def test_ModuleAnalyzer_for_string():
|
||||
analyzer = ModuleAnalyzer.for_string('print("Hello world")', 'module_name')
|
||||
|
||||
Reference in New Issue
Block a user