Skip to content

Commit c3f5f46

Browse files
authored
Merge pull request #797 from easybuilders/ocaisa-patch-2
Bad formatting for example
2 parents 56ab7c3 + 5112263 commit c3f5f46

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

docs/Writing_easyconfig_files.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -186,21 +186,22 @@ The ``dict`` has a required ``filename`` key, with ``level`` and ``opts`` being
186186
Specifying ``filename`` and ``level`` is same as using a ``tuple`` definition.
187187

188188
Example:
189-
```
190-
patches = [
191-
# a simple patch file
192-
'name-versions-fix.patch',
193189

194-
# when creating only new files by patch file, you need to specify level:
195-
('name-versions-fix.patch', 1),
196-
197-
# copy file to target_path folder
198-
('Makefile', 'target_path'),
190+
.. code:: python
199191
200-
# specify patch file and optionally level and opts for patch command
201-
{'filename': 'name-versions-fix.patch', 'level': 1, 'opts': '-l'}
202-
]
203-
```
192+
patches = [
193+
# a simple patch file
194+
'name-versions-fix.patch',
195+
196+
# when creating only new files by patch file, you need to specify level:
197+
('name-versions-fix.patch', 1),
198+
199+
# copy file to target_path folder
200+
('Makefile', 'target_path'),
201+
202+
# specify patch file and optionally level and opts for patch command
203+
{'filename': 'name-versions-fix.patch', 'level': 1, 'opts': '-l'}
204+
]
204205
205206
.. _common_easyconfig_param_sources_checksums:
206207

0 commit comments

Comments
 (0)