File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ def instrumented_format_output(
104
104
start_obj_idx = next ((i for i , obj in enumerate (out_obj ) if obj ['object_type' ] == 'start' ))
105
105
insertion_idx = start_obj_idx
106
106
107
+ # FIXME: format_output() is sensitive to ordering and MUST see a title object _before_
108
+ # anything else otherwise the preamble ends up written above the header and thus
109
+ # an invalid HTML page is served.
107
110
insertion_idx += 1
108
111
out_obj .insert (insertion_idx , {
109
112
'object_type' : 'title' ,
@@ -113,13 +116,6 @@ def instrumented_format_output(
113
116
'script' : {},
114
117
})
115
118
116
- # FIXME: format_output() will write the header _before_ the preamble unless there some
117
- # other non-special output object prior to it.
118
- # insertion_idx += 1
119
- # out_obj.insert(insertion_idx, {
120
- # 'object_type': '__FORCEPREAMBLE__',
121
- # })
122
-
123
119
insertion_idx += 1
124
120
out_obj .insert (insertion_idx , {
125
121
'object_type' : 'header' ,
You can’t perform that action at this time.
0 commit comments