|
@@ -32,10 +32,13 @@ namespace QuestPDF.Elements.Text.Items
|
|
|
var fontMetrics = Style.ToFontMetrics();
|
|
var fontMetrics = Style.ToFontMetrics();
|
|
|
|
|
|
|
|
var startIndex = request.StartIndex;
|
|
var startIndex = request.StartIndex;
|
|
|
-
|
|
|
|
|
- while (startIndex + 1 < Text.Length && Text[startIndex] == space)
|
|
|
|
|
- startIndex++;
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (request.IsFirstLineElement)
|
|
|
|
|
+ {
|
|
|
|
|
+ while (startIndex + 1 < Text.Length && Text[startIndex] == space)
|
|
|
|
|
+ startIndex++;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (Text.Length == 0)
|
|
if (Text.Length == 0)
|
|
|
{
|
|
{
|
|
|
return new TextMeasurementResult
|
|
return new TextMeasurementResult
|