Remove extraneous <p> tags in dice roll outputs.
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
This commit is contained in:
parent
c4e0393d99
commit
0396911c56
|
@ -15,7 +15,7 @@ impl Command for RollCommand {
|
|||
async fn execute(&self, _ctx: &Context<'_>) -> ExecutionResult {
|
||||
let roll = self.0.roll();
|
||||
let html = format!(
|
||||
"<p><strong>Dice:</strong> {}</p><p><strong>Result</strong>: {}</p>",
|
||||
"<strong>Dice:</strong> {}</p><p><strong>Result</strong>: {}",
|
||||
self.0, roll
|
||||
);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ impl Command for PoolRollCommand {
|
|||
let rolled_pool = roll_pool(&pool_with_ctx).await?;
|
||||
|
||||
let html = format!(
|
||||
"<p><strong>Pool:</strong> {}</p><p><strong>Result</strong>: {}</p>",
|
||||
"<strong>Pool:</strong> {}</p><p><strong>Result</strong>: {}",
|
||||
rolled_pool, rolled_pool.roll
|
||||
);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ impl Command for CthRoll {
|
|||
let executed_roll = regular_roll(&roll_with_ctx).await?;
|
||||
|
||||
let html = format!(
|
||||
"<p><strong>Roll:</strong> {}</p><p><strong>Result</strong>: {}</p>",
|
||||
"<strong>Roll:</strong> {}</p><p><strong>Result</strong>: {}",
|
||||
executed_roll, executed_roll.roll
|
||||
);
|
||||
|
||||
|
@ -39,7 +39,7 @@ impl Command for CthAdvanceRoll {
|
|||
let roll_with_ctx = AdvancementRollWithContext(&self.0, ctx);
|
||||
let executed_roll = advancement_roll(&roll_with_ctx).await?;
|
||||
let html = format!(
|
||||
"<p><strong>Roll:</strong> {}</p><p><strong>Result</strong>: {}</p>",
|
||||
"<strong>Roll:</strong> {}</p><p><strong>Result</strong>: {}",
|
||||
executed_roll, executed_roll.roll
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue