Expand my Community achievements bar.

EDS with Document based authoring - issue with new line

Avatar

Level 4

When I am adding a new empty line in a Sharepoint document it is taking as a section. Is this an expected behaviour? 

Also when adding a new empty line inside any default blocks like column, cards it is getting truncated and not visible on preview of the doc. Is anyone come across this?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6 Replies

Avatar

Community Advisor

Hi @AshwiniSathe1 
New line would not be considered as section but it may be a new line and your block may treated that differently.

It in the block.js that basically parse all the element in HTML markup and arrange in predefined layout based on block.js logic.

 

So please change cards.js logic to accommodate new line.



Arun Patidar

Avatar

Level 4

@arunpatidar I am talking about the new line in default content like text, heading there it is taking a section even if horizontal line/ 3 dashes not there. 

And for the blocks it is truncating. Also where can we find the block.js?

Avatar

Community Advisor

Hi @AshwiniSathe1 

You can check the various blocks at

https://github.com/arunpatidar02/aem-helix-1/tree/main/blocks 

 

You can check authoring details at https://www.aem.live/docs/authoring

 

Can you check for which blocks are you seeing this issue? 



Arun Patidar

Avatar

Level 4

@arunpatidar This is behaviour I have seen in Columns, cards block for the truncating the new line.

Avatar

Community Advisor

Hi @AshwiniSathe1 
I have tried with google doc, I don't see new section has been added, you can check below link

https://main--aem-helix-1--arunpatidar02.hlx.page/blocks/cards

 



Arun Patidar

Avatar

Administrator

@AshwiniSathe1 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni