Skip to content

Commit c7b935f

Browse files
authored
Merge pull request #378 from PanderMusubi/variabletypo
fixed typo in Bootstrap in code and CHANGES.rst
2 parents ac1f3c0 + 9fb8f0a commit c7b935f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGES.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Changelog
22
=========
33

4+
- Fixed typo in Bootstrap in code and CHANGES.rst.
45
- Upgrade to Bootstrap Icons 1.11.3.
56

67

@@ -67,7 +68,7 @@ Release date: 2022/11/20
6768

6869
- Drop Python 3.6 support, and test against Python 3.10.
6970
- Add support for strict Content Security Policy (CSP) (`#252 <https://github.com/helloflask/bootstrap-flask/pull/252>`__)
70-
- Upgrade to Bootstrap 5.2.2, Popper 2.11.6, Bootswatch 5.2.2, and Boostrap Icons 1.9.1.
71+
- Upgrade to Bootstrap 5.2.2, Popper 2.11.6, Bootswatch 5.2.2, and Bootstrap Icons 1.9.1.
7172
- Fix Flask-SQLAlchemy ``paginate`` named parameters in tests and examples.
7273
- Support to preview available Bootswatch theme in the example application.
7374
- Remove ``.DS_Store`` files from the distribution files.

flask_bootstrap/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,18 @@ def load_css(self, version=None, bootstrap_sri=None, bootswatch_theme=None):
108108
base_path = 'css'
109109
else:
110110
base_path = f'css/bootswatch/{bootswatch_theme.lower()}'
111-
boostrap_url = url_for('bootstrap.static', filename=f'{base_path}/{self.bootstrap_css_filename}')
111+
bootstrap_url = url_for('bootstrap.static', filename=f'{base_path}/{self.bootstrap_css_filename}')
112112
else:
113113
if not bootswatch_theme:
114114
base_path = f'{CDN_BASE}/bootstrap@{version}/dist/css'
115115
else:
116116
base_path = f'{CDN_BASE}/bootswatch@{version}/dist/{bootswatch_theme.lower()}'
117-
boostrap_url = f'{base_path}/{self.bootstrap_css_filename}'
117+
bootstrap_url = f'{base_path}/{self.bootstrap_css_filename}'
118118

119119
if bootstrap_sri and not bootswatch_theme:
120-
css = f'<link rel="stylesheet" href="{boostrap_url}" integrity="{bootstrap_sri}" crossorigin="anonymous">'
120+
css = f'<link rel="stylesheet" href="{bootstrap_url}" integrity="{bootstrap_sri}" crossorigin="anonymous">'
121121
else:
122-
css = f'<link rel="stylesheet" href="{boostrap_url}">'
122+
css = f'<link rel="stylesheet" href="{bootstrap_url}">'
123123
return Markup(css)
124124

125125
def _get_js_script(self, version, name, sri, nonce):

0 commit comments

Comments
 (0)