SLIM adds space at the beginning of a multiline line

I am trying to add a space to the beginning of my thin template, where I had to break the text due to the link, I cannot let my life work on this

.mdl-cell.mdl-cell--4-col-phone.mdl-cell--8-col-tablet.mdl-cell--12-col-desktop
  | Don't have an account?
  = link_to 'Create one here.', sign_up_path
+4
source share
4 answers

found after some deeper research that the subtle way is to use >, so the new code that launched a space at the end of the first line

span> Don't have an account? 
= link_to 'Create one here.', sign_up_path
+10
source

with a simple quote "thin adding space

.mdl-cell.mdl-cell--4-col-phone.mdl-cell--8-col-tablet.mdl-cell--12-col-desktop
  | Don't have an account?
  '
  = link_to 'Create one here.', sign_up_path
+7
source

 , html:

.mdl-cell.mdl-cell--4-col-phone.mdl-cell--8-col-tablet.mdl-cell--12-col-desktop
| Don't have an account? 
= link_to 'Create one here.', sign_up_path
+3

| Don't have an account?, . , .

, - | Don't have an account? .

+1
source

Source: https://habr.com/ru/post/1651206/


All Articles