My text doesn't match. The " " problem

bazookaBenbazookaBen Member Posts: 318
edited May 2012 in Working with GS (Mac)
i did a quick test

text1: john doe
text2: john

i added text2 .. " " .. "doe"

then compared text1 and text2. No match :(

any idea why its not working?

project file here
http://dl.dropbox.com/u/29923081/john-doe-match-test.zip

Answers

  • bazookaBenbazookaBen Member Posts: 318
    edited May 2012
    @tshirtbooth

    no no.

    i appended text2 with spacebar plus "doe" at the back. Now both are "john doe"

    but when i compare them, no match

    if you run the project, you can check the debugger -> it's showing the same text, but no match
  • bazookaBenbazookaBen Member Posts: 318
    here's my screen



  • bazookaBenbazookaBen Member Posts: 318
    it's this append whitespace problem. I'm stumped
  • bazookaBenbazookaBen Member Posts: 318
    okay. i was on 0.9.93 too
  • bazookaBenbazookaBen Member Posts: 318
    but i need the space in the words. Any way to make it work?
  • bazookaBenbazookaBen Member Posts: 318
    i figured it out

    i was using a combination of opt + spacebar, and normal spacebar. GS detects them differently, but the screen shows what seems to us as spacebars.

    solution: don't use opt+spacebar. create a seperate global variable / table, put a normal spacebar in it, and everytime it's needed, retrieve from there
  • MotherHooseMotherHoose Member Posts: 2,456
    great @bazookaBen

    love tables for lots of solutions!

    or … as the text2 has to have the opt+space
    type text1 as john[opt+space]doe

    darn computers are so literal!

    image MH
Sign In or Register to comment.