Remove extraneous <p> tags in dice roll outputs.
continuous-integration/drone/push Build is running Details

This commit is contained in:
projectmoon 2021-05-13 21:29:44 +00:00
parent c4e0393d99
commit 0396911c56
3 changed files with 4 additions and 4 deletions

View File

@ -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
);

View File

@ -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
);

View File

@ -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
);