Rydberg dressing of a one-dimensional Bose-Einstein condensate