FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix whitespace in consecutive {% trans %} blocks by andreyv · Pull Request #1063 · cms-dev/cms · GitHub

/ cms Public

Fix whitespace in consecutive {% trans %} blocks - #1063

Merged
lw merged 1 commit into
cms-dev:masterfrom
andreyv:whitespace-fixes
Nov 4, 2018
Merged

Fix whitespace in consecutive {% trans %} blocks#1063
lw merged 1 commit into
cms-dev:masterfrom
andreyv:whitespace-fixes

Conversation

andreyv commented Nov 3, 2018
edited by stefano-maggiolo
Loading

Copy link
Copy Markdown
Member

Due to active Jinja whitespace handling, whitespace was removed between consecutive {% trans %} blocks, resulting in translated sentences being glued together. Fix this by disabling the lstrip_blocks behaviour in relevant places.


This change is 

Due to active Jinja whitespace handling, whitespace was removed between
consecutive {% trans %} blocks, resulting in translated sentences being
glued together. Fix this by disabling the lstrip_blocks behaviour in
relevant places.

codecov Bot commented Nov 3, 2018
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #1063 into master will increase coverage by 0.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1063      +/-   ##
==========================================
+ Coverage   61.97%   62.08%   +0.11%     
==========================================
  Files         228      228              
  Lines       16436    16436              
==========================================
+ Hits        10186    10205      +19     
+ Misses       6250     6231      -19
Flag Coverage Δ
#functionaltests 46.05% <ø> (-0.02%) ⬇️
#unittests 43.18% <ø> (+0.01%) ⬆️
Impacted Files Coverage Δ
cms/db/base.py 81.91% <0%> (-2.13%) ⬇️
cms/grading/Job.py 88.62% <0%> (-0.95%) ⬇️
cms/service/workerpool.py 62.22% <0%> (-0.56%) ⬇️
cms/server/admin/handlers/base.py 68.13% <0%> (ø) ⬆️
cms/service/EvaluationService.py 67.28% <0%> (+0.53%) ⬆️
cms/server/admin/handlers/dataset.py 25.38% <0%> (+0.61%) ⬆️
cms/io/rpc.py 91.8% <0%> (+0.68%) ⬆️
cms/io/triggeredservice.py 85.26% <0%> (+1.05%) ⬆️
cms/db/filecacher.py 78.36% <0%> (+1.31%) ⬆️
cms/io/priorityqueue.py 94.89% <0%> (+1.45%) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e8a701...c894d02. Read the comment docs.

lw merged commit db8a3db into cms-dev:master Nov 4, 2018

lw commented Nov 4, 2018

Copy link
Copy Markdown
Member

Very good catch, I had never noticed, thanks! Pushed to master and v1.4.

andreyv deleted the whitespace-fixes branch November 5, 2018 05:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL