Whitespace

This commit is contained in:
Behdad Esfahbod 2017-09-27 16:50:59 -04:00
parent 554041d596
commit f99278112d
1 changed files with 9 additions and 9 deletions

View File

@ -1497,15 +1497,15 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
if (elt)
{
/* Trim surrounding whitespace. */
pp = utf8;
while (*pp == ' ')
pp++;
len = strlen ((const char *) pp);
memmove (utf8, pp, len + 1);
pp = utf8 + len;
while (pp > utf8 && *(pp - 1) == ' ')
pp--;
*pp = 0;
pp = utf8;
while (*pp == ' ')
pp++;
len = strlen ((const char *) pp);
memmove (utf8, pp, len + 1);
pp = utf8 + len;
while (pp > utf8 && *(pp - 1) == ' ')
pp--;
*pp = 0;
if (FcStringInPatternElement (pat, elt, utf8))
{