Skip to content

Commit 783b326

Browse files
kjetilbjorkeeivindjahren
authored andcommitted
Fix doc formating
1 parent f377e81 commit 783b326

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

python/docs/code/index.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ ResdataRestartFile.contains_report_step
492492
The classmethod :code:`contains_report_step` will check if the file
493493
*filename* contains the report_step *report_step*:
494494
495+
.. code:: python
495496
496497
if ResdataRestartFile.contains_report_step( "CASE.UNRST" , 100):
497498
print("The file has a section for report step=100")
@@ -1075,9 +1076,11 @@ ending date of the simulation respectively. The return value is an
10751076
instance of Python datetime.date(): ... start_date = sum.start_date
10761077
end_date = sum.end_date
10771078
1078-
print "Simulation started.............: %s" % start_date
1079-
print "Simulation ended...............: %s" % end_date
1080-
print "The simulation spans %s days...: %s" % (end_date - start_date).days
1079+
.. code:: python
1080+
1081+
print "Simulation started.............: %s" % start_date
1082+
print "Simulation ended...............: %s" % end_date
1083+
print "The simulation spans %s days...: %s" % (end_date - start_date).days
10811084
10821085
start_time / end_time
10831086
,,,,,,,,,,,,,,,,,,,,,

0 commit comments

Comments
 (0)