Background Color:
 
Background Pattern:
Reset
Search

Forum

Please Log In

We want you to contribute! 

This forum is a moderated environment. 
We try to keep it neat and tidy. In order to access the forum content we would like you to either or register.

HomeHomeScryberScryberIssues and Defe...Issues and Defe...Error Found When SamplingError Found When Sampling
Previous
 
Next
New Post
6/14/2016 5:26 PM
 

I encountered a bug when building/learning the template system. I unfortunately lost the exact template that caused the issue. However, I did happen to remember where the bug existed, so since you know the code, you should be able to recreate easily.

The bug was thrown by LayoutEngineText.OptionallyRemoveWhiteSpaceInLayout(), specifically the char.IsWhiteSpace(chars,0) bit. I found that a certain structure caused chars to be an empty string. (Which caused the error).  I worked around it by adding a css class that preserved the whitespace in any place that it happened.

 However, as I kept building my template, I eventually no longer had the structure that caused it.

 
Previous
 
Next
HomeHomeScryberScryberIssues and Defe...Issues and Defe...Error Found When SamplingError Found When Sampling