Python 表格显示在页面的末尾,而不是&x27;如果将其作为文本发送到Jinja2模板,则为所需位置

Python 表格显示在页面的末尾,而不是&x27;如果将其作为文本发送到Jinja2模板,则为所需位置,python,flask,jinja2,Python,Flask,Jinja2,我正试图通过Python和Flask创建一个网站 我发送了一个带有金贾的表来显示文本,这个表在页面的结尾呈现,即使它在文本的中间。 我对烧瓶不熟悉,这让我头疼 文本将与render_模板一起发送到模板 返回呈现模板('test.html',text=text') 在模板中,我用 {% autoescape false %} {{ text }} {% endautoescape %} 文本示例: '...You decide what action the creature will

我正试图通过Python和Flask创建一个网站

我发送了一个带有金贾的表来显示文本,这个表在页面的结尾呈现,即使它在文本的中间。

我对烧瓶不熟悉,这让我头疼

文本将与render_模板一起发送到模板

返回呈现模板('test.html',text=text')

在模板中,我用

{% autoescape false %}
    {{ text }}
{% endautoescape %}
文本示例:

 '...You decide what action the creature will take and where it will move during its next turn, or you can issue a general command, such as to guard a particular chamber or corridor. If you issue no commands, the creature only defends itself against hostile creatures. Once given an order, the creature continues to follow it until its task is complete.<br/><h5> Animated Object Statistics 
    <br/></h5><table class="table table-hover mt-2 table-sm" style="max-width: 500px"><thead><tr><th></th><th> Size </th><th> HP </th><th> AC </th><th> Attack </th><th> Str </th><th> Dex </th><th></th></tr></thead><tbody><br/><br/><tr><th></th><th> Tiny </th><th> 20 </th><th> 18 </th><th> +8 to hit, 1d4 + 4 damage </th><th> 4 </th><th> 18 </th><th></th></tr><br/><tr><th></th><th> Small </th><th> 25 </th><th> 16 </th><th> +6 to hit, 1d8 + 2 damage 
    </th><th> 6 </th><th> 14 </th><th></th></tr><br/><tr><th></th><th> Medium </th><th> 40 </th><th> 13 </th><th> +5 to hit, 2d6 + 1 damage </th><th> 10 
</th><th> 12 </th><th></th></tr><br/><tr><th></th><th> Large </th><th> 50 </th><th> 10 </th><th> +6 to hit, 2d10 + 2 damage </th><th> 14 </th><th> 10 </th><th></th></tr><br/><tr><th></th><th> Huge </th><th> 80 </th><th> 10 </th><th> +8 to hit, 2d12 + 4 damage </th><th> 18 </th><th> 6 </th><th></th></tr></tbody> <br/><br/>An animated object is a construct with AC, hit points, attacks, Strength, and Dexterity determined by its size. Its Constitution is 10 and its Intelligence and Wisdom are 3, and its Charisma is 1. Its speed is 30 feet; if the object lacks legs or other appendages...'
“…您可以决定该生物将采取什么行动以及在下一回合中移动到哪里,或者您可以发出一般命令,例如守卫特定的房间或走廊。如果你不发出任何命令,该生物只会防御敌对生物。一旦下达命令,该生物将继续跟随该命令,直到其任务完成。
动画对象统计信息
大小HP AC攻击Str Dex

微小20 18+8命中,1d4+4伤害4 18
微小25 16+6命中,1d8+2伤害 6 14
中等40 13+5命中,2 D6+1伤害10 12
大型50 10+6命中,2D 10+2伤害14 10
大型80 10+8命中,2D 12+4伤害18 6

动画对象是由其大小决定的具有AC、生命点、攻击、力量和灵巧度的构造。它的体质是10,智力和智慧是3,魅力是1。它的速度是30英尺;如果物体缺少腿或其他附属物……”
网站截图: